package org.example.springcloud.bean;

import lombok.AllArgsConstructor;
import lombok.Data;

@Data
@AllArgsConstructor
public class ResponseResult<T> {

    private int code;

    private String msg;

    private T data;

    public static <T> ResponseResult<T> success(int code, String msg, T t) {
        return new ResponseResult<>(code, msg, t);
    }
}
